// 选项卡跳转
var divAll = document.querySelectorAll('.tab div')
var centAll = document.querySelectorAll('.cent .cents')
function tab(i) {
  divAll.forEach(function (ele, inx) {
    if (inx == i) {
      divAll[inx].className = 'xuanxiangka'
    } else {
      divAll[inx].className = ''
    }

  })
  centAll.forEach(function (item, ii) {
    if (ii == i-1) {
      centAll[ii].style.display = 'block'
    } else {
      centAll[ii].style.display = 'none'
    }
  })
}
